package com.bluishoul.action;

import java.io.IOException;

import javax.servlet.ServletException;

import my.mvc.RequestContext;

public class AjaxAction {

	public final static String TPL_BASE = "/WEB-INF/templates/ajax/";

	public final static String TPL_SHOP_DISHES = TPL_BASE + "shop_dishes.vm";

	public final static String TPL_ORDER_ORG = TPL_BASE + "order_original.vm";
	
	public final static String TPL_ORDER_DETAILS = TPL_BASE + "order_details.vm";

	public void shopDishes(RequestContext rc) throws ServletException,
			IOException {
		rc.forward(TPL_SHOP_DISHES);
	}

	public void orderOriginal(RequestContext rc) throws ServletException,
			IOException {
		rc.forward(TPL_ORDER_ORG);
	}

	public void orderDetails(RequestContext rc) throws ServletException,
			IOException {
		rc.forward(TPL_ORDER_DETAILS);
	}
}
